package com.woniu.micropropertyserver.feign.service;

import com.woniu.microcommonsserver.param.ResponseMsg;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author ：bb
 * @date ：Created in 2021/1/31 0031
 * @description：
 * @modified By：
 * @version: $
 */
/**
 * 针对某一个微服务提供的Feign接口
 * name = "micro--server" 被调用方的spring.application.name的名称
 */
@FeignClient(name = "micro-project-server")
public interface MicroProjectServerFeign {

    //项目
    @GetMapping(value = "/build/findById",produces = MediaType.APPLICATION_JSON_VALUE)
    public ResponseMsg findById(String id);


    @GetMapping(value = "/build/findAll",produces = MediaType.APPLICATION_JSON_VALUE)
    public ResponseMsg findAll();

    }
